  /**
   * Generate time : 2016-04-12 9:42:07
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cg.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCGChangeWorkDetail 
 * table comment : 交接班记录从表 
 */
public class ZMCGChangeWorkDetail extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdWorknumId = " ";		/* 生产班次*/
	private String fdVirtualDate = " ";		/* 调度日期*/
	private String fdCurrentDate = " ";		/* 当前日期*/
	private String fdOutperson = " ";		/* 交班人*/
	private String fdInperson = " ";		/* 接班人*/
	private String fdProblemHadle = " ";		/* 问题处理情况*/
	private String fdProblemAnalyse = " ";		/* 问题情况分析*/
	private String fdChangeId = " ";		/* 交接班ID*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdWorknumId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("生产班次");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdVirtualDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("调度日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCurrentDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("当前日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdOutperson");
	eiColumn.setFieldLength(16);	
	eiColumn.setDescName("交班人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdInperson");
	eiColumn.setFieldLength(16);	
	eiColumn.setDescName("接班人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdProblemHadle");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("问题处理情况");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdProblemAnalyse");
	eiColumn.setFieldLength(200);	
	eiColumn.setDescName("问题情况分析");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdChangeId");
	eiColumn.setFieldLength(16);	
	eiColumn.setDescName("交接班ID");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCGChangeWorkDetail() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdWorknumId - 生产班次
	 * @return the fdWorknumId
	 */
	public String getFdWorknumId() {
		return this.fdWorknumId;
	}
	
	/**
	 * set the fdWorknumId - 生产班次
	 */
	public void setFdWorknumId(String fdWorknumId) {
		this.fdWorknumId = fdWorknumId;
	}
	/**
	 * get the fdVirtualDate - 调度日期
	 * @return the fdVirtualDate
	 */
	public String getFdVirtualDate() {
		return this.fdVirtualDate;
	}
	
	/**
	 * set the fdVirtualDate - 调度日期
	 */
	public void setFdVirtualDate(String fdVirtualDate) {
		this.fdVirtualDate = fdVirtualDate;
	}
	/**
	 * get the fdCurrentDate - 当前日期
	 * @return the fdCurrentDate
	 */
	public String getFdCurrentDate() {
		return this.fdCurrentDate;
	}
	
	/**
	 * set the fdCurrentDate - 当前日期
	 */
	public void setFdCurrentDate(String fdCurrentDate) {
		this.fdCurrentDate = fdCurrentDate;
	}
	/**
	 * get the fdOutperson - 交班人
	 * @return the fdOutperson
	 */
	public String getFdOutperson() {
		return this.fdOutperson;
	}
	
	/**
	 * set the fdOutperson - 交班人
	 */
	public void setFdOutperson(String fdOutperson) {
		this.fdOutperson = fdOutperson;
	}
	/**
	 * get the fdInperson - 接班人
	 * @return the fdInperson
	 */
	public String getFdInperson() {
		return this.fdInperson;
	}
	
	/**
	 * set the fdInperson - 接班人
	 */
	public void setFdInperson(String fdInperson) {
		this.fdInperson = fdInperson;
	}
	/**
	 * get the fdProblemHadle - 问题处理情况
	 * @return the fdProblemHadle
	 */
	public String getFdProblemHadle() {
		return this.fdProblemHadle;
	}
	
	/**
	 * set the fdProblemHadle - 问题处理情况
	 */
	public void setFdProblemHadle(String fdProblemHadle) {
		this.fdProblemHadle = fdProblemHadle;
	}
	/**
	 * get the fdProblemAnalyse - 问题情况分析
	 * @return the fdProblemAnalyse
	 */
	public String getFdProblemAnalyse() {
		return this.fdProblemAnalyse;
	}
	
	/**
	 * set the fdProblemAnalyse - 问题情况分析
	 */
	public void setFdProblemAnalyse(String fdProblemAnalyse) {
		this.fdProblemAnalyse = fdProblemAnalyse;
	}
	/**
	 * get the fdChagneId - 交接班ID
	 * @return the fdChagneId
	 */
	public String getFdChangeId() {
		return this.fdChangeId;
	}
	
	/**
	 * set the fdChagneId - 交接班ID
	 */
	public void setFdChangeId(String fdChangeId) {
		this.fdChangeId = fdChangeId;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdWorknumId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdWorknumId")), fdWorknumId));
		setFdVirtualDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdVirtualDate")), fdVirtualDate));
		setFdCurrentDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCurrentDate")), fdCurrentDate));
		setFdOutperson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdOutperson")), fdOutperson));
		setFdInperson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdInperson")), fdInperson));
		setFdProblemHadle(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProblemHadle")), fdProblemHadle));
		setFdProblemAnalyse(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdProblemAnalyse")), fdProblemAnalyse));
		setFdChangeId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdChangeId")), fdChangeId));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdWorknumId",StringUtils.toString(fdWorknumId, eiMetadata.getMeta("fdWorknumId")));	
			map.put("fdVirtualDate",StringUtils.toString(fdVirtualDate, eiMetadata.getMeta("fdVirtualDate")));	
			map.put("fdCurrentDate",StringUtils.toString(fdCurrentDate, eiMetadata.getMeta("fdCurrentDate")));	
			map.put("fdOutperson",StringUtils.toString(fdOutperson, eiMetadata.getMeta("fdOutperson")));	
			map.put("fdInperson",StringUtils.toString(fdInperson, eiMetadata.getMeta("fdInperson")));	
			map.put("fdProblemHadle",StringUtils.toString(fdProblemHadle, eiMetadata.getMeta("fdProblemHadle")));	
			map.put("fdProblemAnalyse",StringUtils.toString(fdProblemAnalyse, eiMetadata.getMeta("fdProblemAnalyse")));	
			map.put("fdChangeId",StringUtils.toString(fdChangeId, eiMetadata.getMeta("fdChangeId")));	
			
		return map;
	
	}
}